<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<%@ page import="com.scalar.chiptrack.utils.ConfigManager" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/forecastActualReport.do?action=leftToBookReport"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext(); //try { %>

<HTML>
<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet">
<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/quickSearch.js"></script>
</HEAD>
<script language="javascript">

    function submitReport()
    {
        var reportType = 'Summary';
        var forecastType = "BuildForecast";
        
        if (document.forecastReportForm.reportType[0].checked )
        {
            reportType = 'Detail';
        }
        if (document.forecastReportForm.forecastType[0].checked )
        {
            forecastType = 'Forecast';
        }
        document.forecastReportForm.action = "<%=chipTracContext%>/forecastActualReport.do?action=xlsLeftToBookReport&reportType=" + reportType + "&forecastType=" + forecastType
        document.forecastReportForm.submit();

    }

</script>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
  <TR>
	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>
    <!-- Side Navigation start -->
    <%@ include file="/jsp/operations/reports_side_menu.jsp" %>
    <!-- end of the side navigations -->
    </TD>
    <TD bgcolor="#ffffff">
        <IMG height="9" src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width="8"></TD>
        <TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width="2"></TD>
        <TD valign="top" width="100%">
        <IMG height="1" src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width="500" border="0">
        <BR>
        <html:form name="forecastReportForm" type="com.scalar.forecast.forecastReports.forms.SalesForecastReportForm" action="/forecastActualReport.do?action=leftToBookReport">
        <TABLE border="0" width="100%" align="center">
            <TR><TD colspan="6" class="NArialW" align="center">Left To Book Report</TD></TR>

            <TR><TD colspan="6">&nbsp;</TD></TR>
            <TR><TD width="12%" >&nbsp;</TD>
                <TD colspan="6" class='NArialL' align="left"><strong><FONT id="message" styleClass="NArialL" color='FF0000'>&nbsp;</FONT></strong>
                </TD>
            </TR>
            <TR>
                <TD>&nbsp;</TD>
                <TD colspan="6" align="left">
                  <chiptrack:info styleClass="NArialL" />
                  <chiptrack:errors styleClass="NArialL" />
                  <chiptrack:messages type="info" styleClass="NArialL" />&nbsp;
                </TD>
            </TR>
            <TR>
                <TD colspan="6">
                    <TABLE align="center" border="0" width="100%" cellspacing="3" cellpadding="2">
                        <TR>
                            <TD width="10%" >&nbsp;</TD>
                            <TD width="15%" class="NArialL" valign = 'top' align = "left">Customer </TD>
                            <TD width="20%" class="NArialL" valign = 'top'>
                                <html:select property="customerName" name="forecastReportForm" styleClass="txfield">
                                    <html:option value="0">All Customers</html:option>
                                    <html:options collection="customersList" property="label" labelProperty="label"/>
                                </html:select>
                            </TD>
                            <TD width="15%" class="NArialL" valign = 'top' align = "left" nowrap="true">&nbsp;&nbsp;<bean:message key="label.mktgPartNumber" /></TD>
                            <TD width="20%" class="NArialL" valign = 'top'>
                                <html:select property="salesPartNumber" name="forecastReportForm" styleClass="txfield">
                                    <html:option value="0">All Part Numbers</html:option>
                                    <html:options collection="mktPartNumberList" property="label" labelProperty="label"/>
                                </html:select>
                            <TD width="15%">&nbsp;</TD>
                         </TR>

                        <TR><TD colspan="6"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></TD></TR>
                        <TR>
                            <TD width="10%">&nbsp;</TD>
                            <TD width="15%" class="NArialL" valign="top" nowrap="true">ChipSet</TD>
                            <TD width="20%" class="NArialL" valign="top" nowrap="true">
                                <html:select property="chipSet" name="forecastReportForm" styleClass="txfield">
                                    <html:option value="0">All ChipSet</html:option>
                                    <html:options collection="chipSetList" property="value" labelProperty="label"/>
                                </html:select>
                            </TD>
                            <TD width="15%" class="NArialL" valign="top" align = "left">Chip Family</TD>
                            <TD width="20%" class="NArialL" valign="top">
                                <html:select property="chipFamily" name="forecastReportForm" styleClass="txfield">
                                    <html:option value="0">All ChipFamily</html:option>
                                    <html:options collection="chipSetList" property="value" labelProperty="label"/>
                                </html:select>
                            </TD>
                            <TD width="15%">&nbsp;</TD>
                        </TR>
                        <TR><TD colspan="6"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></TD></TR>
                        <TR>
                            <TD width="10%">&nbsp;</TD>
                            <TD width="15%" class="NArialL" valign="top" nowrap="true">Quarter</TD>
                            <TD width="20%" class="NArialL" valign="top" nowrap="true">
                                <html:select property="qtrNo" name="forecastReportForm" styleClass="txfield">
                                    <html:options collection="quaterList" property="value" labelProperty="label"/>
                                </html:select>
                            </TD>
                            <TD width="15%" class="NArialL" valign="top" align = "left">Year</TD>
                            <TD width="20%" class="NArialL" valign="top">
                                <html:select property="currentYear" name="forecastReportForm" styleClass="txfield">
                                    <html:options collection="yearList" property="value" labelProperty="label"/>
                                </html:select>
                            </TD>
                            <TD width="15%">&nbsp;</TD>
                        </TR>
                        <TR><TD colspan="6"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></TD></TR>
                        <tr>
                         <td width="10%">&nbsp;</td>
                        <td width="15%">&nbsp;</td>
                        <td width="20%" nowrap class="NArialL">
                            <input type="radio" name="reportType" value="detail" checked="true">&nbsp;&nbsp; Detail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <input type="radio" name="reportType" value="summary">&nbsp;&nbsp; Summary
                        </td>

                        <td width="15%">&nbsp;</td>
                        <td width="20%">&nbsp;</td>
                        <td width="15%">&nbsp;</td>
                        </tr>

                         <TR><TD colspan="6"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></TD></TR>
                        <tr>
                         <td width="10%">&nbsp;</td>
                        <td width="15%">&nbsp;</td>
                        <td width="20%" nowrap class="NArialL">
                            <input type="radio" name="forecastType" value="salesForecast" checked="true">&nbsp;&nbsp; Forecast&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <input type="radio" name="forecastType" value="buildForecast">&nbsp;&nbsp; Build Forecast
                        </td>

                        <td width="15%">&nbsp;</td>
                        <td width="20%">&nbsp;</td>
                        <td width="15%">&nbsp;</td>
                        </tr>

                        <TR><TD colspan="6"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></TD></TR>
                        <TR><TD colspan="6"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></TD></TR>
                       <TR>
                           <%-- <td colspan=2 valign="top">&nbsp;</td>--%>
                            <TD colspan="6" align=center valign="top">
                                <a href="javascript:submitReport();"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/submit.gif" width="53" height="17" onmouseover="window.status='Click to Generate Left To Book Report';return true" onmouseout="window.status='';return true" title='Click to Generate Left To Book Report'></a>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <a href="javascript:document.forecastReportForm.reset();"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" width="53" height="17" onmouseover="window.status='Click to reset search';return true" onmouseout="window.status='';return true" title="Click here to reset search"></a>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            </TD>
                            <%--<td colspan=2 valign="top">&nbsp;</td>--%>
                       </TR>
                        <TR><TD colspan="6"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></TD></TR>
                    </TABLE>
                </TD>
            </TR>
        </TABLE>
        </html:form>
    </TR>
</TABLE>
<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</BODY>
</HTML>
<%-- } catch(Exception e){e.printStackTrace();} --%>
